package com.wyg.blog.model.blog;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @description:
 * @author: WYG
 * @time: 2020/6/30 9:05
 */

public class Type implements Serializable {
    private Integer id;
    private String type;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date create_time;
    private boolean state;

    public Type() {
    }

    public Type(Integer id, String type, Date create_time, boolean state) {
        this.id = id;
        this.type = type;
        this.create_time = create_time;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Type{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", create_time=" + create_time +
                ", state=" + state +
                '}';
    }
}
